package com.github.jiangxch.rpc.transport.exchanger;

import com.github.jiangxch.rpc.serialization.Serializer;
import com.github.jiangxch.rpc.transport.Client;
import com.github.jiangxch.rpc.transport.Server;
import com.github.jiangxch.rpc.transport.Transporter;

import java.net.InetSocketAddress;

/**
 * @author: jiangxch
 * @date: 2021/2/25 上午3:05
 */
public interface Exchanger {
    ExchangeServer bind(InetSocketAddress address, Serializer serializer, Transporter transporter, Replier replier);
    
    ExchangeClient connect(InetSocketAddress address, Serializer serializer, Transporter transporter);
}
